﻿<Page x:Class="Topics.Radical.Samples.EntityCollectionView.EntityCollectionViewPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:Topics.Radical.Samples.EntityCollectionView"
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	  Title="EntityCollectionViewPage"
      Style="{StaticResource ResourceKey=samplePage}">
    <Page.DataContext>
        <local:EntityCollectionViewViewModel />
    </Page.DataContext>
    <StackPanel>
        
        <DataGrid AutoGenerateColumns="True" 
                  ItemsSource="{Binding Path=Items}"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Stretch">
            <!--<DataGrid.Columns>
                <DataGridTextColumn Header="FirstName" Binding="{Binding Path=FirstName}" />
                <DataGridTextColumn Header="LastName" Binding="{Binding Path=LastName}" />
            </DataGrid.Columns>-->
        </DataGrid>
        <Label Content="{Binding Path=Items.CurrentItem.FirstName}" />
    </StackPanel>
</Page>
